﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlServerCe;
using System.Configuration;

namespace MedicineTracker.Model
{
    public partial class Database
    {
        private SqlCeConnection _sqlConnection;
        private SqlCeCommand _sqlCommand;
        private String _strConnectionString = "Data Source=|DataDirectory|\\App_Data.sdf;";

        public SqlCeConnection Connection
        {
            get { return _sqlConnection; }
        }

        public SqlCeCommand Command
        {
            get { return _sqlCommand; }
            set { _sqlCommand = value; }
        }

        public SqlCeDataReader DataReader { get; set; }

        public Database()
        {
            _sqlConnection = new SqlCeConnection(_strConnectionString);
            _sqlCommand = new SqlCeCommand();
        }
    }
}
